package listener;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * Application Lifecycle Listener implementation class MyListener
 *
 */
public class MyListener implements HttpSessionListener, ServletRequestListener {

    public void sessionCreated(HttpSessionEvent arg0)  { 
    	
		System.out.println("项目 启动了！！！！！session  被创建了！！！");

    }

    public void requestDestroyed(ServletRequestEvent arg0)  { 
		System.out.println("项目 启动了！！！！！request 被销毁了了！！！");

    }

	
    public void requestInitialized(ServletRequestEvent arg0)  { 
		System.out.println("项目 启动了！！！！！request 被创建了！！！");

    }

	
    public void sessionDestroyed(HttpSessionEvent arg0)  { 
		System.out.println("项目 启动了！！！！！session 被销毁了了！！！");

    }
	
}
